package com.sc.VenusQueryBeta.contract.account.xiaofei;

import com.hengjun.kingstar.sdk.base.BasePresenter;
import com.hengjun.kingstar.sdk.base.IBaseActivity;
import com.hengjun.kingstar.sdk.base.IBaseModel;
import com.sc.VenusQueryBeta.model.bean.account.CurrencyListBean;
import com.sc.VenusQueryBeta.model.bean.account.xiaofei.XiaoFei01Bean;


import io.reactivex.Observable;

/**
 * Created by Administrator on 19/10/2018.
 *
 */

public interface XiaoFei01Contract {
    abstract class XiaoFei1Presenter extends BasePresenter<IXiaoFei1Model,IXiaoFei1Activity> {
        //查询币种(根据账房那边排序)
//    public abstract void queryAllRoomList(String serverAddress, String projectName, int serverPort);
        public abstract void queryAllCurrencyList(String serverAddress, String projectName, int serverPort);
        //加载存卡明细数据
        public abstract void getXiaoFei1(String serverAddress, String projectName, int serverPort, int clientindex,
                                         String clientAppmsgnum, String roomth, String roomyear, String roomname);

        /**
         * 加载更多test list
         */
        public abstract void getMoreXiaoFei1(String serverAddress, String projectName, int serverPort, int clientindex,
                                             String clientAppmsgnum, String roomth, String roomyear, String roomname);
    }
    interface IXiaoFei1Model extends IBaseModel {

        //查询厅(根据账房那边排序)
//    Observable<AllRoomListBean> queryAllRoomList(String serverAddress, String projectName, int serverPort);
        Observable<CurrencyListBean> queryAllCurrencyList(String serverAddress, String projectName, int serverPort);
        //消费第一层
        Observable<XiaoFei01Bean> getXiaoFei1(String serverAddress, String projectName, int serverPort, int clientindex, int start, int limit,
                                              String clientAppmsgnum, String roomth, String roomyear, String roomname);

    }
    interface IXiaoFei1Activity extends IBaseActivity {

        void showNetworkError(Throwable throwable);

        /** 显示加载更多错误
         */
        void showLoadMoreError();

        /**
         * 显示没有更多数据
         */
        void showNoMoreData();

        void showXiaoFei01Data1Success(XiaoFei01Bean xiaoFei01Bean);

        //查询厅(根据账房那边排序)
        void showqueryAllCurrencyList(CurrencyListBean currencyListBean);
    }
}
